<div>
  <h1>Gerar Relat&oacute;rio</h1>
  <% form_for(:relatorio, :url => { :action => 'create', :consulta => @consulta }) do |rel| %>
    <%= error_messages_for 'relatorio' %>
    <br>
    <%= render :partial => 'list' %>
    <% if @show_salvar %>
      <br>
      <%= rel.text_field('nome', :maxlength => 50) %>
      <%= submit_tag('Salvar') %>
      <br>
    <% end %>
    <br>
    <%= link_to("Voltar", {:action => 'new'}) %>
    <br>
  <% end %>
  <br>
</div>